home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
graphics
/
tiff
/
tools
/
Makefile.sgi
< prev
next >
Wrap
Makefile
|
1992-02-18
|
5KB
|
155 lines
# $Header: /usr/people/sam/tiff/tools/RCS/Makefile.sgi,v 1.24 92/02/19 14:38:15 sam Exp $
#
# TIFF Library Tools
#
# Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
# Copyright (c) 1991, 1992 Silicon Graphics, Inc.
#
# Permission to use, copy, modify, distribute, and sell this software and
# its documentation for any purpose is hereby granted without fee, provided
# that (i) the above copyright notices and this permission notice appear in
# all copies of the software and related documentation, and (ii) the names of
# Sam Leffler and Silicon Graphics may not be used in any advertising or
# publicity relating to the software without the specific, prior written
# permission of Stanford and Silicon Graphics.
#
# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
#
# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
# OF THIS SOFTWARE.
#
NULL=
IPATH= -I../libtiff
#
# If you don't want the public domain getopt code, then
# simply null this out and you'll get whatever is in your
# libc (or similar).
#
GETOPT= getopt.o
#
# Library-wide configuration defines:
# MMAP_SUPPORT add support for memory mapping read-only files
# COLORIMETRY_SUPPORT add support for 6.0 colorimetry tags
# JPEG_SUPPORT add support for 6.0 JPEG tags & JPEG algorithms
# YCBCR_SUPPORT add support for 6.0 YCbCr tags
# CMYK_SUPPORT add support for 6.0 CMYK tags
#
# Note that if you change the library-wide configuration, you'll
# need to manual force a full rebuild.
#
CONF_LIBRARY=\
-DUSE_VARARGS=0 \
-DUSE_PROTOTYPES=1 \
-DCOLORIMETRY_SUPPORT \
-DJPEG_SUPPORT \
-DYCBCR_SUPPORT \
-DCMYK_SUPPORT \
-DMMAP_SUPPORT \
${NULL}
COPTS=
CFLAGS= -O -ansi ${COPTS} ${IPATH}
#
LIBTIFF=../libtiff/libtiff.a
LIBS= ${LIBTIFF} -lbsd
MACHALL=ras2tiff tiffgt tiffsv sgi2tiff # these exist on the SGI
OBJS= \
fax2tiff.o \
gif2tiff.o \
pal2rgb.o \
ppm2tiff.o \
rgb2ycbcr.o \
tiff2bw.o \
tiff2ps.o \
tiffcmp.o \
tiffcp.o \
tiffdither.o \
tiffdump.o \
tiffinfo.o \
tiffmedian.o \
tiffsplit.o \
ras2tiff.o \
sgigt.o \
sgisv.o \
sgi2tiff.o \
${GETOPT} \
${NULL}
ALL=\
fax2tiff \
gif2tiff \
pal2rgb \
ppm2tiff \
rgb2ycbcr \
tiff2bw \
tiff2ps \
tiffcmp \
tiffcp \
tiffdither \
tiffdump \
tiffinfo \
tiffmedian \
tiffsplit \
${MACHALL} \
${NULL}
all: ${ALL}
tiffinfo: tiffinfo.c ${GETOPT} ${LIBTIFF}
${CC} -o tiffinfo ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
tiffcmp:tiffcmp.c ${GETOPT} ${LIBTIFF}
${CC} -o tiffcmp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
tiffcp: tiffcp.c ${LIBTIFF}
${CC} -o tiffcp ${CFLAGS} tiffcp.c ${LIBS}
tiffdump: tiffdump.c
${CC} -o tiffdump ${CFLAGS} tiffdump.c
tiffmedian: tiffmedian.c ${LIBTIFF}
${CC} -o tiffmedian ${CFLAGS} tiffmedian.c ${LIBS}
tiffsplit: tiffsplit.c ${LIBTIFF}
${CC} -o tiffsplit ${CFLAGS} tiffsplit.c ${LIBS}
tiff2ps: tiff2ps.c ${LIBTIFF}
${CC} -o tiff2ps ${CFLAGS} tiff2ps.c ${LIBS} -lm
# junky stuff...
# convert RGB image to B&W
tiff2bw: tiff2bw.c ${GETOPT} ${LIBTIFF}
${CC} -o tiff2bw ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
# convert B&W image to bilevel w/ FS dithering
tiffdither: tiffdither.c ${GETOPT} ${LIBTIFF}
${CC} -o tiffdither ${CFLAGS} tiffdither.c ${GETOPT} ${LIBS}
# Sun rasterfile converter
ras2tiff: ras2tiff.c ${LIBTIFF}
${CC} -o ras2tiff ${CFLAGS} ras2tiff.c ${LIBS}
# GIF converter
gif2tiff: gif2tiff.c ${LIBTIFF}
${CC} -o gif2tiff ${CFLAGS} gif2tiff.c ${LIBS} -lm
# PBM converter
ppm2tiff: ppm2tiff.c ${LIBTIFF}
${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.c ${LIBS}
# SGI image file converter
sgi2tiff: sgi2tiff.c ${LIBTIFF}
${CC} -o sgi2tiff ${CFLAGS} sgi2tiff.c -limage ${LIBS}
# Group 3 FAX file converter
fax2tiff: fax2tiff.c ${GETOPT} ${LIBTIFF}
${CC} -o fax2tiff ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
# convert Palette image to RGB
pal2rgb: pal2rgb.c ${LIBTIFF}
${CC} -o pal2rgb ${CFLAGS} pal2rgb.c ${LIBS}
# convert RGB image to YCbCr
rgb2ycbcr: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS} -lm
# SGI versions of tiffgt & tiffsv
tiffgt: sgigt.c ${GETOPT} ${LIBTIFF}
${CC} -o tiffgt ${CFLAGS} sgigt.c ${GETOPT} ${LIBS} -lgutil -lgl_s -lm
tiffsv: sgisv.c ${LIBTIFF}
${CC} -o tiffsv ${CFLAGS} sgisv.c ${LIBS} -lgutil -lgl_s -lm
install: all
/etc/install -f /usr/local/bin -m 755 -O ${ALL}
clean:
rm -f ${ALL} ${OBJS} core a.out ycbcr